﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI;
using NLBS.Data;
using NLBS.Entity;
using System.Web;
using NLBS.Framework;
using System.ComponentModel;

namespace NLBS.Control
{
    /// <summary>
    /// NLBS控件，用于显示页脚
    /// </summary>
    [Designer(typeof(EmptyDesigner))]
    public class Foot :System.Web.UI.Control
    {
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            BlogInfo info = BlogInfo.Instance();
            writer.AddAttribute(HtmlTextWriterAttribute.Id, "footer");
            writer.RenderBeginTag(HtmlTextWriterTag.Div);
            writer.AddAttribute(HtmlTextWriterAttribute.Id, "innerFooter");
            writer.RenderBeginTag(HtmlTextWriterTag.Div);
            writer.Write(info.GetSetting("foot").Value1);
            writer.RenderEndTag();
            writer.RenderEndTag();
            base.Render(writer);
        }
    }
}
